package com.sinai.mshab.client.ui.validate;

import com.sinai.mshab.client.ui.basic.BasicFormComponent;

public class DateValidator extends Validator {
	
	/**
	 * The final regular expression for what an MSID looks like. It is
	 * final because the MSID format should not be changed in the course of
	 * the program running.
	 */
	private final String DATE_REGEX = "^[12][09]\\d{2}-(0[1-9]|1[0-2])-" +
			"(0[1-9]|[1-2]\\d|3[0-1])$";
	
	
	public boolean validate(BasicFormComponent component) {
		return super.validate(component, DATE_REGEX);
	}
}
